from projects.models import *
from django.contrib import admin


admin.site.register(Asker)

admin.site.register(Doer)

admin.site.register(Project)

admin.site.register(Release)

admin.site.register(TechnicalArea)

admin.site.register(TechnicalDetail)

admin.site.register(FeatureGroup)

class FeatureDetailInline(admin.StackedInline):
    model = FeatureDetail
    extra = 1

class FeatureAdmin(admin.ModelAdmin):
    fieldsets = [
             (None,  {'fields' : ['name']}),
             ('Planning', {'fields' : ['fgroup', 'asker']})
    ]
    
    inlines = [FeatureDetailInline]

admin.site.register(Feature, FeatureAdmin)
